.class public Lcom/estrongs/android/ui/dialog/x;
.super Lcom/estrongs/android/ui/dialog/q;
.source "EncryptPasswordPromptDialog.java"


# instance fields
.field private a:Landroid/widget/EditText;

.field private b:Landroid/widget/CheckBox;

.field private c:Landroid/widget/CheckBox;

.field private d:Landroid/widget/EditText;

.field private e:Z

.field private f:Landroid/widget/EditText;

.field private g:Landroid/widget/CheckBox;


# direct methods
.method public constructor <init>(Landroid/content/Context;Z)V
    .locals 8

    const-string v0, "eslock"

    .line 1
    invoke-direct {p0, p1}, Lcom/estrongs/android/ui/dialog/q;-><init>(Landroid/content/Context;)V

    .line 2
    iput-boolean p2, p0, Lcom/estrongs/android/ui/dialog/x;->e:Z

    .line 3
    invoke-static {p1}, Lcom/estrongs/android/pop/esclasses/h;->from(Landroid/content/Context;)Landroid/view/LayoutInflater;

    move-result-object v1

    const v2, 0x7f0c015a

    const/4 v3, 0x0

    .line 4
    invoke-virtual {v1, v2, v3}, Landroid/view/LayoutInflater;->inflate(ILandroid/view/ViewGroup;)Landroid/view/View;

    move-result-object v1

    const-string v2, ""

    if-nez p2, :cond_2

    if-eqz p1, :cond_2

    .line 5
    instance-of v3, p1, Lcom/estrongs/android/pop/view/FileExplorerActivity;

    if-eqz v3, :cond_2

    .line 6
    move-object v3, p1

    check-cast v3, Lcom/estrongs/android/pop/view/FileExplorerActivity;

    .line 7
    invoke-virtual {v3}, Lcom/estrongs/android/pop/view/FileExplorerActivity;->b0()Ljava/lang/String;

    move-result-object v3

    .line 8
    invoke-static {v3}, Lcom/estrongs/android/util/h0;->X1(Ljava/lang/String;)Z

    move-result v4

    const-string v5, "sd"

    if-eqz v4, :cond_0

    move-object v3, v5

    goto :goto_0

    .line 9
    :cond_0
    invoke-static {v3}, Lcom/estrongs/android/util/h0;->b1(Ljava/lang/String;)Z

    move-result v3

    if-eqz v3, :cond_1

    const-string v3, "lib"

    goto :goto_0

    :cond_1
    move-object v3, v2

    .line 10
    :goto_0
    new-instance v4, Lorg/json/JSONObject;

    invoke-direct {v4}, Lorg/json/JSONObject;-><init>()V

    .line 11
    :try_start_0
    invoke-static {v3}, Landroid/text/TextUtils;->isEmpty(Ljava/lang/CharSequence;)Z

    move-result v6

    if-nez v6, :cond_2

    const-string v6, "from"

    .line 12
    invoke-virtual {v4, v6, v3}, Lorg/json/JSONObject;->put(Ljava/lang/String;Ljava/lang/Object;)Lorg/json/JSONObject;

    const-string v3, "filetype"

    .line 13
    invoke-virtual {v4, v3, v0}, Lorg/json/JSONObject;->put(Ljava/lang/String;Ljava/lang/Object;)Lorg/json/JSONObject;

    const-string v3, "suffix"

    .line 14
    invoke-virtual {v4, v3, v0}, Lorg/json/JSONObject;->put(Ljava/lang/String;Ljava/lang/Object;)Lorg/json/JSONObject;

    .line 15
    invoke-static {}, Lcom/estrongs/android/statistics/b;->b()Lcom/estrongs/android/statistics/b;

    move-result-object v0

    invoke-virtual {v0, v5, v4}, Lcom/estrongs/android/statistics/b;->a(Ljava/lang/String;Lorg/json/JSONObject;)V
    :try_end_0
    .catch Lorg/json/JSONException; {:try_start_0 .. :try_end_0} :catch_0

    goto :goto_1

    :catch_0
    move-exception v0

    .line 16
    invoke-virtual {v0}, Lorg/json/JSONException;->printStackTrace()V

    :cond_2
    :goto_1
    const v0, 0x7f0903fb

    .line 17
    invoke-virtual {v1, v0}, Landroid/view/View;->findViewById(I)Landroid/view/View;

    move-result-object v0

    check-cast v0, Landroid/widget/EditText;

    iput-object v0, p0, Lcom/estrongs/android/ui/dialog/x;->a:Landroid/widget/EditText;

    const v0, 0x7f090246

    .line 18
    invoke-virtual {v1, v0}, Landroid/view/View;->findViewById(I)Landroid/view/View;

    move-result-object v0

    check-cast v0, Landroid/widget/TableRow;

    if-eqz p2, :cond_3

    const v3, 0x7f090245

    .line 19
    invoke-virtual {v1, v3}, Landroid/view/View;->findViewById(I)Landroid/view/View;

    move-result-object v3

    check-cast v3, Landroid/widget/EditText;

    iput-object v3, p0, Lcom/estrongs/android/ui/dialog/x;->d:Landroid/widget/EditText;

    :cond_3
    const v3, 0x7f0901ed

    .line 20
    invoke-virtual {v1, v3}, Landroid/view/View;->findViewById(I)Landroid/view/View;

    move-result-object v3

    check-cast v3, Landroid/widget/TableRow;

    const v4, 0x7f0901ec

    .line 21
    invoke-virtual {v1, v4}, Landroid/view/View;->findViewById(I)Landroid/view/View;

    move-result-object v4

    check-cast v4, Landroid/widget/CheckBox;

    iput-object v4, p0, Lcom/estrongs/android/ui/dialog/x;->b:Landroid/widget/CheckBox;

    const v4, 0x7f0901e9

    .line 22
    invoke-virtual {v1, v4}, Landroid/view/View;->findViewById(I)Landroid/view/View;

    move-result-object v4

    check-cast v4, Landroid/widget/TableRow;

    const v5, 0x7f0901e8

    .line 23
    invoke-virtual {v1, v5}, Landroid/view/View;->findViewById(I)Landroid/view/View;

    move-result-object v5

    check-cast v5, Landroid/widget/CheckBox;

    iput-object v5, p0, Lcom/estrongs/android/ui/dialog/x;->c:Landroid/widget/CheckBox;

    const v5, 0x7f0903e0

    .line 24
    invoke-virtual {v1, v5}, Landroid/view/View;->findViewById(I)Landroid/view/View;

    move-result-object v5

    check-cast v5, Landroid/widget/TableRow;

    const/16 v6, 0x8

    const/4 v7, 0x0

    if-eqz p2, :cond_4

    .line 25
    invoke-virtual {v0, v7}, Landroid/widget/TableRow;->setVisibility(I)V

    .line 26
    invoke-virtual {v3, v7}, Landroid/widget/TableRow;->setVisibility(I)V

    .line 27
    invoke-virtual {v4, v6}, Landroid/widget/TableRow;->setVisibility(I)V

    .line 28
    invoke-virtual {v5, v7}, Landroid/widget/TableRow;->setVisibility(I)V

    goto :goto_2

    .line 29
    :cond_4
    invoke-virtual {v0, v6}, Landroid/widget/TableRow;->setVisibility(I)V

    .line 30
    invoke-virtual {v3, v6}, Landroid/widget/TableRow;->setVisibility(I)V

    .line 31
    invoke-virtual {v4, v7}, Landroid/widget/TableRow;->setVisibility(I)V

    .line 32
    invoke-virtual {v5, v6}, Landroid/widget/TableRow;->setVisibility(I)V

    const v0, 0x7f0909a0

    .line 33
    invoke-virtual {v1, v0}, Landroid/view/View;->findViewById(I)Landroid/view/View;

    move-result-object v0

    invoke-virtual {v0, v6}, Landroid/view/View;->setVisibility(I)V

    .line 34
    :goto_2
    iget-object v0, p0, Lcom/estrongs/android/ui/dialog/x;->a:Landroid/widget/EditText;

    invoke-virtual {v0}, Landroid/widget/EditText;->getInputType()I

    move-result v0

    const v3, 0x7f0901f0

    .line 35
    invoke-virtual {v1, v3}, Landroid/view/View;->findViewById(I)Landroid/view/View;

    move-result-object v3

    check-cast v3, Landroid/widget/CheckBox;

    .line 36
    invoke-virtual {v3, v7}, Landroid/widget/CheckBox;->setVisibility(I)V

    .line 37
    new-instance v4, Lcom/estrongs/android/ui/dialog/x$a;

    invoke-direct {v4, p0, v0}, Lcom/estrongs/android/ui/dialog/x$a;-><init>(Lcom/estrongs/android/ui/dialog/x;I)V

    .line 38
    invoke-virtual {v3, v4}, Landroid/widget/CheckBox;->setOnCheckedChangeListener(Landroid/widget/CompoundButton$OnCheckedChangeListener;)V

    .line 39
    iget-object v0, p0, Lcom/estrongs/android/ui/dialog/x;->a:Landroid/widget/EditText;

    invoke-virtual {v0, v2}, Landroid/widget/EditText;->setHint(Ljava/lang/CharSequence;)V

    .line 40
    invoke-virtual {p0, v1}, Lcom/estrongs/android/ui/dialog/q;->setContentView(Landroid/view/View;)V

    const/4 v0, -0x1

    .line 41
    iget-object v2, p0, Lcom/estrongs/android/ui/dialog/q;->mContext:Landroid/content/Context;

    .line 42
    invoke-virtual {v2}, Landroid/content/Context;->getResources()Landroid/content/res/Resources;

    move-result-object v2

    const v3, 0x7f11029e

    invoke-virtual {v2, v3}, Landroid/content/res/Resources;->getString(I)Ljava/lang/String;

    move-result-object v2

    new-instance v3, Lcom/estrongs/android/ui/dialog/x$b;

    invoke-direct {v3, p0}, Lcom/estrongs/android/ui/dialog/x$b;-><init>(Lcom/estrongs/android/ui/dialog/x;)V

    .line 43
    invoke-virtual {p0, v0, v2, v3}, Lcom/estrongs/android/ui/dialog/q;->setButton(ILjava/lang/CharSequence;Landroid/content/DialogInterface$OnClickListener;)V

    const/4 v0, -0x2

    .line 44
    iget-object v2, p0, Lcom/estrongs/android/ui/dialog/q;->mContext:Landroid/content/Context;

    .line 45
    invoke-virtual {v2}, Landroid/content/Context;->getResources()Landroid/content/res/Resources;

    move-result-object v2

    const v3, 0x7f110299

    invoke-virtual {v2, v3}, Landroid/content/res/Resources;->getString(I)Ljava/lang/String;

    move-result-object v2

    new-instance v3, Lcom/estrongs/android/ui/dialog/x$c;

    invoke-direct {v3, p0}, Lcom/estrongs/android/ui/dialog/x$c;-><init>(Lcom/estrongs/android/ui/dialog/x;)V

    .line 46
    invoke-virtual {p0, v0, v2, v3}, Lcom/estrongs/android/ui/dialog/q;->setButton(ILjava/lang/CharSequence;Landroid/content/DialogInterface$OnClickListener;)V

    .line 47
    new-instance v0, Lcom/estrongs/android/ui/dialog/x$d;

    invoke-direct {v0, p0}, Lcom/estrongs/android/ui/dialog/x$d;-><init>(Lcom/estrongs/android/ui/dialog/x;)V

    invoke-virtual {p0, v0}, Landroid/app/Dialog;->setOnCancelListener(Landroid/content/DialogInterface$OnCancelListener;)V

    .line 48
    iget-object v0, p0, Lcom/estrongs/android/ui/dialog/q;->button_ok:Landroid/widget/Button;

    invoke-virtual {p1}, Landroid/content/Context;->getResources()Landroid/content/res/Resources;

    move-result-object p1

    const v2, 0x7f06013e

    invoke-virtual {p1, v2}, Landroid/content/res/Resources;->getColorStateList(I)Landroid/content/res/ColorStateList;

    move-result-object p1

    invoke-virtual {v0, p1}, Landroid/widget/Button;->setTextColor(Landroid/content/res/ColorStateList;)V

    .line 49
    iget-object p1, p0, Lcom/estrongs/android/ui/dialog/q;->button_ok:Landroid/widget/Button;

    invoke-virtual {p1, v7}, Landroid/widget/Button;->setEnabled(Z)V

    .line 50
    iget-object p1, p0, Lcom/estrongs/android/ui/dialog/x;->a:Landroid/widget/EditText;

    new-instance v0, Lcom/estrongs/android/ui/dialog/x$e;

    invoke-direct {v0, p0}, Lcom/estrongs/android/ui/dialog/x$e;-><init>(Lcom/estrongs/android/ui/dialog/x;)V

    invoke-virtual {p1, v0}, Landroid/widget/EditText;->addTextChangedListener(Landroid/text/TextWatcher;)V

    if-eqz p2, :cond_5

    .line 51
    iget-object p1, p0, Lcom/estrongs/android/ui/dialog/x;->d:Landroid/widget/EditText;

    new-instance p2, Lcom/estrongs/android/ui/dialog/x$f;

    invoke-direct {p2, p0}, Lcom/estrongs/android/ui/dialog/x$f;-><init>(Lcom/estrongs/android/ui/dialog/x;)V

    invoke-virtual {p1, p2}, Landroid/widget/EditText;->addTextChangedListener(Landroid/text/TextWatcher;)V

    :cond_5
    const p1, 0x7f090208

    .line 52
    invoke-virtual {v1, p1}, Landroid/view/View;->findViewById(I)Landroid/view/View;

    move-result-object p1

    check-cast p1, Landroid/widget/CheckBox;

    iput-object p1, p0, Lcom/estrongs/android/ui/dialog/x;->g:Landroid/widget/CheckBox;

    const p1, 0x7f090559

    .line 53
    invoke-virtual {v1, p1}, Landroid/view/View;->findViewById(I)Landroid/view/View;

    move-result-object p1

    check-cast p1, Landroid/widget/EditText;

    iput-object p1, p0, Lcom/estrongs/android/ui/dialog/x;->f:Landroid/widget/EditText;

    .line 54
    invoke-static {}, Lcom/estrongs/android/pop/o;->A0()Lcom/estrongs/android/pop/o;

    move-result-object p1

    invoke-virtual {p1}, Lcom/estrongs/android/pop/o;->s()Ljava/lang/String;

    move-result-object p1

    if-eqz p1, :cond_6

    .line 55
    iget-object p2, p0, Lcom/estrongs/android/ui/dialog/x;->f:Landroid/widget/EditText;

    invoke-virtual {p2, p1}, Landroid/widget/EditText;->setText(Ljava/lang/CharSequence;)V

    .line 56
    :cond_6
    iget-object p1, p0, Lcom/estrongs/android/ui/dialog/x;->f:Landroid/widget/EditText;

    const/4 p2, 0x1

    invoke-virtual {p1, p2}, Landroid/widget/EditText;->setSelectAllOnFocus(Z)V

    .line 57
    iget-object p1, p0, Lcom/estrongs/android/ui/dialog/x;->f:Landroid/widget/EditText;

    iget-object p2, p0, Lcom/estrongs/android/ui/dialog/x;->g:Landroid/widget/CheckBox;

    invoke-virtual {p2}, Landroid/widget/CheckBox;->isChecked()Z

    move-result p2

    invoke-virtual {p1, p2}, Landroid/widget/EditText;->setEnabled(Z)V

    .line 58
    iget-object p1, p0, Lcom/estrongs/android/ui/dialog/x;->g:Landroid/widget/CheckBox;

    new-instance p2, Lcom/estrongs/android/ui/dialog/x$g;

    invoke-direct {p2, p0}, Lcom/estrongs/android/ui/dialog/x$g;-><init>(Lcom/estrongs/android/ui/dialog/x;)V

    invoke-virtual {p1, p2}, Landroid/widget/CheckBox;->setOnCheckedChangeListener(Landroid/widget/CompoundButton$OnCheckedChangeListener;)V

    const p1, 0x7f1105e5

    .line 59
    invoke-virtual {p0, p1}, Lcom/estrongs/android/ui/dialog/q;->setTitle(I)V

    .line 60
    invoke-virtual {p0}, Lcom/estrongs/android/ui/dialog/q;->requestInputMethod()V

    return-void
.end method

.method static synthetic a(Lcom/estrongs/android/ui/dialog/x;)Landroid/widget/EditText;
    .locals 0

    .line 1
    iget-object p0, p0, Lcom/estrongs/android/ui/dialog/x;->a:Landroid/widget/EditText;

    return-object p0
.end method

.method static synthetic b(Lcom/estrongs/android/ui/dialog/x;)Z
    .locals 0

    .line 1
    iget-boolean p0, p0, Lcom/estrongs/android/ui/dialog/x;->e:Z

    return p0
.end method

.method static synthetic c(Lcom/estrongs/android/ui/dialog/x;)Landroid/widget/EditText;
    .locals 0

    .line 1
    iget-object p0, p0, Lcom/estrongs/android/ui/dialog/x;->d:Landroid/widget/EditText;

    return-object p0
.end method

.method static synthetic d(Lcom/estrongs/android/ui/dialog/x;)Landroid/widget/EditText;
    .locals 0

    .line 1
    iget-object p0, p0, Lcom/estrongs/android/ui/dialog/x;->f:Landroid/widget/EditText;

    return-object p0
.end method

.method private i()Z
    .locals 1

    .line 1
    iget-object v0, p0, Lcom/estrongs/android/ui/dialog/x;->g:Landroid/widget/CheckBox;

    invoke-virtual {v0}, Landroid/widget/CheckBox;->isChecked()Z

    move-result v0

    return v0
.end method


# virtual methods
.method public a()Z
    .locals 1

    .line 2
    iget-object v0, p0, Lcom/estrongs/android/ui/dialog/x;->c:Landroid/widget/CheckBox;

    invoke-virtual {v0}, Landroid/widget/CheckBox;->isChecked()Z

    move-result v0

    return v0
.end method

.method public b()Ljava/lang/String;
    .locals 1

    .line 2
    iget-object v0, p0, Lcom/estrongs/android/ui/dialog/x;->d:Landroid/widget/EditText;

    invoke-virtual {v0}, Landroid/widget/EditText;->getText()Landroid/text/Editable;

    move-result-object v0

    invoke-virtual {v0}, Ljava/lang/Object;->toString()Ljava/lang/String;

    move-result-object v0

    return-object v0
.end method

.method public c()Ljava/lang/String;
    .locals 2

    .line 2
    invoke-direct {p0}, Lcom/estrongs/android/ui/dialog/x;->i()Z

    move-result v0

    const/4 v1, 0x0

    if-nez v0, :cond_0

    return-object v1

    .line 3
    :cond_0
    iget-object v0, p0, Lcom/estrongs/android/ui/dialog/x;->f:Landroid/widget/EditText;

    invoke-virtual {v0}, Landroid/widget/EditText;->getEditableText()Landroid/text/Editable;

    move-result-object v0

    if-nez v0, :cond_1

    return-object v1

    .line 4
    :cond_1
    iget-object v0, p0, Lcom/estrongs/android/ui/dialog/x;->f:Landroid/widget/EditText;

    invoke-virtual {v0}, Landroid/widget/EditText;->getEditableText()Landroid/text/Editable;

    move-result-object v0

    invoke-virtual {v0}, Ljava/lang/Object;->toString()Ljava/lang/String;

    move-result-object v0

    invoke-virtual {v0}, Ljava/lang/String;->isEmpty()Z

    move-result v0

    if-eqz v0, :cond_2

    return-object v1

    .line 5
    :cond_2
    iget-object v0, p0, Lcom/estrongs/android/ui/dialog/x;->f:Landroid/widget/EditText;

    invoke-virtual {v0}, Landroid/widget/EditText;->getEditableText()Landroid/text/Editable;

    move-result-object v0

    invoke-virtual {v0}, Ljava/lang/Object;->toString()Ljava/lang/String;

    move-result-object v0

    return-object v0
.end method

.method public d()Z
    .locals 1

    .line 2
    iget-object v0, p0, Lcom/estrongs/android/ui/dialog/x;->b:Landroid/widget/CheckBox;

    invoke-virtual {v0}, Landroid/widget/CheckBox;->isChecked()Z

    move-result v0

    return v0
.end method

.method public dismiss()V
    .locals 2

    .line 1
    invoke-super {p0}, Lcom/estrongs/android/ui/dialog/q;->dismiss()V

    .line 2
    invoke-direct {p0}, Lcom/estrongs/android/ui/dialog/x;->i()Z

    move-result v0

    if-eqz v0, :cond_0

    invoke-virtual {p0}, Lcom/estrongs/android/ui/dialog/x;->c()Ljava/lang/String;

    move-result-object v0

    if-eqz v0, :cond_0

    .line 3
    invoke-static {}, Lcom/estrongs/android/pop/o;->A0()Lcom/estrongs/android/pop/o;

    move-result-object v0

    invoke-virtual {p0}, Lcom/estrongs/android/ui/dialog/x;->c()Ljava/lang/String;

    move-result-object v1

    invoke-virtual {v0, v1}, Lcom/estrongs/android/pop/o;->e(Ljava/lang/String;)V

    :cond_0
    return-void
.end method

.method public e()Ljava/lang/String;
    .locals 1

    .line 1
    iget-object v0, p0, Lcom/estrongs/android/ui/dialog/x;->a:Landroid/widget/EditText;

    invoke-virtual {v0}, Landroid/widget/EditText;->getText()Landroid/text/Editable;

    move-result-object v0

    invoke-virtual {v0}, Ljava/lang/Object;->toString()Ljava/lang/String;

    move-result-object v0

    return-object v0
.end method

.method protected f()V
    .locals 0

    const p0, 0x0

    throw p0
.end method

.method protected g()V
    .locals 0

    const p0, 0x0

    throw p0
.end method
